package  org.fantasy.cpp.core.pojo;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import  org.fantasy.cpp.core.annotation.Field;

/**
 * 数据源类型
 * 
 * @author 王文成
 * @version 1.0
 * @since 2011-7-5
 */
@Table("CHART_TYPE")
public class ChartType{

	/**
	 * 饼图
	 */
	public static final int PIE = 1;

	/**
	 * 柱状图
	 */
	public static final int BAR = 2;

	/**
	 * 曲线图
	 */
	public static final int LINE = 3;

	@Id
	@Column("chart_type_id")
	@Field(desc = "图表类型id", nullable = false)
	private Long chartTypeId;

	@Column("chart_type_name")
	@Field(desc = "图表类型名称", nullable = false, maxlenth = 64)
	private String chartTypeName;

	@Column("chart_type_desc")
	@Field(desc = "图表类型描述", nullable = false, maxlenth = 1024)
	private String chartTypeDesc;

	@Column("state")
	@Field(desc = "状态", nullable = false, maxlenth = 3)
	private String state;

	public Long getChartTypeId() {
		return chartTypeId;
	}

	public void setChartTypeId(Long chartTypeId) {
		this.chartTypeId = chartTypeId;
	}

	public String getChartTypeName() {
		return chartTypeName;
	}

	public void setChartTypeName(String chartTypeName) {
		this.chartTypeName = chartTypeName;
	}

	public String getChartTypeDesc() {
		return chartTypeDesc;
	}

	public void setChartTypeDesc(String chartTypeDesc) {
		this.chartTypeDesc = chartTypeDesc;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
}